<% if @credit_record.errors.empty? %>
  $("#evidence-form").html( '<%= j(render partial: 'upload_evidence', locals:{credit_record: @credit_record}) %>' )
<% else %>
  $("#error-notice").html( '<%= j(render partial: 'error_panel', locals:{credit_record: @credit_record}) %>' )
<% end %>
